'; } //inject the link frame $name = "design/".$_SESSION['theme']."/linkframe.html"; $linkframe = ""; if (file_exists($name)) { $fh = fopen($name,'r'); $linkframe = '
'; $linkframe.= fread( $fh, filesize($name)); $linkframe.='
'."\n"; } else { $linkframe='
'."\n"; } //inject the links $thelinks = ''."\n"; $linkframe = str_replace("",$thelinks,$linkframe); $page = str_replace("",$linkframe,$page); //inject the banner $name = "design/".$_SESSION['theme']."/banner.html"; $banner = ""; if (file_exists($name)) { $fh = fopen($name,'r'); $banner = ''."\n"; } else { $banner = ''."\n"; } $page=str_replace("",$banner,$page); //inject the body frame $name = "design/".$_SESSION['theme']."/bodyframe.html"; $bodyframe = ""; if (file_exists($name)) { $fh = fopen($name,'r'); $bodyframe = '
'; $bodyframe.= fread( $fh, filesize($name)); $bodyframe.='
'."\n"; } else { $bodyframe = '
'."\n"; } $page=str_replace("",$bodyframe,$page); //inject the body text, we explode it here so we can preserve any php that might have actually been used in the CMS admin interface by doing a require(); $javascript=''. ''. ''. ''; $page=str_replace("",$javascript,$page); $page = explode("",$page); echo $page[0]; if (!isset($_GET['file'])) { if ( isset($_SESSION['subsection']) ) { if (isset($sectionlist[$_SESSION['section']]['sub'][$_SESSION['subsection']]['file'])) { $filename=$sectionlist[$_SESSION['section']]['sub'][$_SESSION['subsection']]['file']; } } else { if (isset($sectionlist[$_SESSION['section']]['file'])) { $filename=$sectionlist[$_SESSION['section']]['file']; } } } else { $filename="files/".stripslashes($_GET['file']); } if (file_exists($filename)) { require($filename); } else { require("404.php"); } //lets just drop the code to manage menus here. //then the rest of the page. $js=''; $page[1]=str_replace("",$js."",$page[1]); echo $page[1]; /*DO NOT EDIT THIS PAGE IF YOU DO NOT KNOW PHP!*/ /*DO NOT EDIT THIS PAGE IF YOU DO NOT KNOW PHP!*/ /*DO NOT EDIT THIS PAGE IF YOU DO NOT KNOW PHP!*/ ?>